<?php
require('./lib/init.php');
tiao();
if (!$_POST) {
	include(ROOT.'/view/admin/pwd.html');
}else{
	$psd = $_POST['password'].'Acdf';
	$psd = md5($psd);
    print_r($_COOKIE['name']);
    $sql = "update user set password = '$psd' where name = '$_COOKIE[name]'";
    if(mQuery($sql)){
    	succ('密码修改成功');
    }else{
    	echo mysql_error();
    }

}


 ?>